Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increased code-coverage for choropleth #676

Merged
merged 3 commits into from
Mar 15, 2017

Conversation

aashish24
Copy link
Member

No description provided.

@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch 3 times, most recently from e1bc72c to 52124f6 Compare March 11, 2017 01:48
@codecov-io
Copy link

codecov-io commented Mar 11, 2017

Codecov Report

Merging #676 into master will increase coverage by 0.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master     #676     +/-   ##
=========================================
+ Coverage   90.64%   90.75%   +0.1%     
=========================================
  Files          84       84             
  Lines        8736     8736             
=========================================
+ Hits         7919     7928      +9     
+ Misses        817      808      -9
Impacted Files Coverage Δ
src/choroplethFeature.js 98.79% <ø> (+10.84%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a210c07...2a264c4. Read the comment docs.

@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch 23 times, most recently from 7f621e1 to e31550c Compare March 15, 2017 03:15
@aashish24 aashish24 changed the title [WIP] Increasing code-coverage for choropleth feature Increased code-coverage for choropleth Mar 15, 2017
@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch 2 times, most recently from 3cf7f01 to fa8bef5 Compare March 15, 2017 03:28
@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch 5 times, most recently from dd7e7ed to eda50ea Compare March 15, 2017 04:09
Also fixed documentation and style issues.
@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch from eda50ea to a72da03 Compare March 15, 2017 04:17
@manthey
Copy link
Contributor

manthey commented Mar 15, 2017

I notice that we still have one line uncovered; that of direct creation. This can be tested like so:

    it('direct creation', function () {
      var map, layer, choropleth;
      map = create_map();
      layer = map.createLayer('feature', {renderer: 'vgl'});
      choropleth = geo.choroplethFeature({layer: layer});
      expect(choropleth instanceof geo.choroplethFeature).toBe(true);
    });

@aashish24
Copy link
Member Author

it('direct creation', function () {
var map, layer, choropleth;
map = create_map();
layer = map.createLayer('feature', {renderer: 'vgl'});
choropleth = geo.choroplethFeature({layer: layer});
expect(choropleth instanceof geo.choroplethFeature).toBe(true);
});

I was wondering about that but i realized that we don't do that in general. I can add this snippet.

Also, I realized that sometimes the GL headless tests are failing on travis. It seems random to me and related to failed download but i have not looked closely.

@manthey
Copy link
Contributor

manthey commented Mar 15, 2017

In many of the unit tests we create the feature explicitly for some of the tests, so this gets tested as part of that (e.g., the polygonFeature tests).

There are some speed tests that occasionally fail. These are set to be pretty low, but they still sometimes fail; we could set the threshold even lower, or try to run them up to n times to see if they pass. In theory, if we make some change that affects our speed, then these should pick that up.

Also, it looks like some package was recently changed so that we may now need a more recent version of npm to run tests.

@aashish24
Copy link
Member Author

Also, it looks like some package was recently changed so that we may now need a more recent version of npm to run tests.

that could be. It was trying to download a package and failed last time I saw the log

@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch 2 times, most recently from f0e9b64 to 73e11f5 Compare March 15, 2017 15:35
@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch from 73e11f5 to 3372d19 Compare March 15, 2017 15:47
@aashish24
Copy link
Member Author

@manthey this is ready for review . The gl tests are failing but that is because of the other issues which I think you are taking care of in your #677 branch.

@manthey
Copy link
Contributor

manthey commented Mar 15, 2017

Travis is running slowly today. I've submitted PR #679 to fix the node version and to relax some timing requirements. Hopefully once that passes and merges in, this will pass, too.

@aashish24
Copy link
Member Author

Branch is updated with recent changes from master that should fix the travis tests.

@aashish24
Copy link
Member Author

@manthey looks like we still have some the timing issue with glLineOpts..but I will merge this branch since it seems orthogonal to my changes as you approved it.

@manthey
Copy link
Contributor

manthey commented Mar 15, 2017

Agreed.

@aashish24 aashish24 force-pushed the increase_coverage_choropleth branch from 90b97b7 to 2a264c4 Compare March 15, 2017 17:15
@aashish24 aashish24 merged commit 155b1f4 into master Mar 15, 2017
@aashish24 aashish24 deleted the increase_coverage_choropleth branch March 15, 2017 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants